﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MQTTServer.Models.entity
{
    public class DeviceEntity
    {
        /// <summary>
        /// 设备序列号(设备编号) 
        ///</summary>
        public string Code { get; set; }

        /// <summary>
        /// 设备名称 
        ///</summary>
        public string Name { get; set; }

        /// <summary>
        /// 是否在线 
        ///</summary>
        public bool IsOnline { get; set; }

        /// <summary>
        /// 设备IP地址 
        ///</summary>
        public string IpAddress { get; set; }

        /// <summary>
        /// 最后同步时间
        /// </summary>
        public DateTime LastSyncTime { get; set; }
    }
}
